import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 30318
 * Date: 2023-10-17
 * Time: 17:36
 */
public class Palindrome {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        System.out.print("Enter a three-digit integer: ");
        int number = scanner.nextInt();

        int tmp = number;
        int num1 = number % 10;
        number /= 10;
        int num2 = number % 10;
        number /= 10;
        int num3 = number % 10;

        if (num1 == num3) {
            System.out.println(tmp + " is a palindrome");
        } else {
            System.out.println(tmp + " is not a palindrome");
        }
    }
}
